<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>

<nav class="navbar navbar-default" role="navigation">
	<div class="container-fluid">
		<div class="navbar-header">
			<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#example-navbar-collapse">
				<span class="sr-only">切换导航</span>
				<span class="icon-bar"></span>
				<span class="icon-bar"></span>
				<span class="icon-bar"></span>
			</button>
			<a class="navbar-brand" href="#">CRM(<span id="sdu"></span>)</a>
			<script type="text/javascript">
			 $.get("${contextPath}/sdu", function(result){
			 	$("#sdu").html(result.sdu);
			 	if(result.sdu!="crm"){
				 	$("#ztgl").empty();
			 	}
			 });
			</script>
		</div>
		<div class="collapse navbar-collapse" id="example-navbar-collapse">
			<ul class="nav navbar-nav">
				<li>
					<a href="${contextPath}/security/customer" >客户管理 </a>
				</li>
				<li>
					<a href="${contextPath}/security/order">订单管理 </a>
				</li>
				<li>
					<a href="${contextPath}/security/product">产品管理</a>
				</li>
				<li>
					<a href="${contextPath}/security/code">选项管理</a>
				</li>
				<li class="dropdown">
					<a href="#" class="dropdown-toggle" data-toggle="dropdown">
						当前用户：${sessionScope.username}
						<b class="caret"></b>
					</a>
					<ul class="dropdown-menu">
					<c:if test="${sessionScope.usertype!=2}">
						<li>
							<a href="${contextPath}/security/manager">用户管理 </a>
						</li>
						<li id="ztgl">
							<a href="${contextPath}/security/dbs">账套管理 </a>
						</li>
						<li class="divider"></li>
					</c:if>
						<li>
							<a href="${contextPath}/quit">退出</a>
						</li>
					</ul>
				</li>
			</ul>
		</div>
	</div>
</nav>